9b2dc6f5841e28cb42f456d9002e2b6b810981a6,js/js.translator/src/org/jetbrains/k2js/translate/reference/InlinedCallExpressionTranslator.java,InlinedCallExpressionTranslator,translate,#,70

Before Change


    @NotNull
    private JsExpression translate() {
        TranslationContext contextWithAllParametersAliased = createContextWithAllParametersAliased();
        JetFunction function = BindingUtils.getFunctionForDescriptor(bindingContext(), getFunctionDescriptor());
        return Translation.translateAsExpression(function.getBodyExpression(), contextWithAllParametersAliased);
    }

After Change


    @NotNull
    private JsExpression translate() {
        TranslationContext contextWithAllParametersAliased = createContextForInlining();
        JsNode translatedBody = translateFunctionBody(getFunctionDescriptor(), getFunctionBody(), contextWithAllParametersAliased);
        //TODO: declare uninitialized temporary
        TemporaryVariable temporaryVariable = contextWithAllParametersAliased.declareTemporary(program().getNullLiteral());
        JsNode mutatedBody = LastExpressionMutator.mutateLastExpression(translatedBody, new InlineFunctionMutator(temporaryVariable));